<?php
/**
 * 处理推荐请求
 */
include_once("./common.php");

$ret = array("success"=>false);

$newshash = getVar($_GET,"newshash",null);
if($newshash){
	$pre = $config["DB_PREX"];
	$sql = "UPDATE {$pre}news SET dig=dig+1 WHERE newshash=$newshash";
	$ret["success"] = $db->query($sql);
}

exit(json_encode($ret));
?>